package com.bosssoft.entity.po;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author Li kexi
 * Created on 2021/8/20.10:12
 */
/**
    * 凭证存储表
    */
@ApiModel(value="com-bosssoft-entity-po-FibVoucherDetails")
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "fib_voucher_details")
public class FibVoucherDetailsPO implements Serializable {
    /**
     * 凭证id
     */
    @TableId(value = "voucher_id", type = IdType.ASSIGN_ID)
    @ApiModelProperty(value="凭证id")
    private Long voucherId;

    /**
     * 凭证类型编号
     */
    @TableField(value = "voucher_code")
    @ApiModelProperty(value="凭证类型编号")
    private Integer voucherCode;

    /**
     * 预算申请表编号
     */
    @TableField(value = "bgt_id")
    @ApiModelProperty(value="预算申请表编号")
    private Long bgtId;

    /**
     * 金额
     */
    @TableField(value = "voucher_amount")
    @ApiModelProperty(value="金额")
    private BigDecimal voucherAmount;

    /**
     * 收款人编号
     */
    @TableField(value = "voucher_account_userid")
    @ApiModelProperty(value="收款人编号")
    private Long voucherAccountUserid;

    /**
     * 付款人编号
     */
    @TableField(value = "voucher_pay_userid")
    @ApiModelProperty(value="付款人编号")
    private Long voucherPayUserid;

    /**
     * 未盖章凭证地址
     */
    @TableField(value = "voucher_url_not_seal")
    @ApiModelProperty(value="未盖章凭证地址")
    private String voucherUrlNotSeal;

    /**
     * 盖过章的凭证地址
     */
    @TableField(value = "voucher_url")
    @ApiModelProperty(value="盖过章的凭证地址")
    private String voucherUrl;

    /**
     * 状态
     */
    @TableField(value = "`status`")
    @ApiModelProperty(value="状态")
    private Integer status;

    /**
     * 创建时间
     */
    @TableField(value = "create_time",fill = FieldFill.INSERT)
    @ApiModelProperty(value="创建时间")
    private Date createTime;

    /**
     * 创建人
     */
    @TableField(value = "create_by")
    @ApiModelProperty(value="创建人")
    private String createBy;

    /**
     * 激活状态
     */
    @TableField(value = "deleted")
    @ApiModelProperty(value="激活状态")
    private Byte deleted;

    /**
     * 版本号
     */
    @Version
    @TableField(value = "version")
    @ApiModelProperty(value="版本号")
    private Integer version;

    private static final long serialVersionUID = 1L;
}